package com.wind.salebooking.service;

import com.wind.salebooking.dao.SaleBookingDao;
import com.wind.salebooking.model.CompositeVO;
import com.wind.salebooking.model.SaleBookingBriefVO;
import com.wind.salebooking.model.SaleBookingVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/1/4.
 */
@Service
public class SaleBookingServiceImpl implements SaleBookingService {

    @Autowired
    private SaleBookingDao saleBookingDao;

    @Override
    public List<SaleBookingBriefVO> getSalesList(int salesmanId) {
        return saleBookingDao.getSalesList(salesmanId);
    }

    @Override
    public SaleBookingVO getSaleBookingDts(String bookingId) {
        return saleBookingDao.getSaleBookingDts(bookingId);
    }

    @Override
    public List<CompositeVO> getComposite(String bookingId) {
        return saleBookingDao.getComposite(bookingId);
    }

}
